<template>
	<view class="cantainer">
		<card btnTxt="当前绿地有害生物预警信息" imgUrl="../../static/danger.png" mode="aspectFit" @click="aaclick()">
		</card>
		<card btnTxt="有害生物绿地生物信息查询与检索" imgUrl="../../static/message-search.png" mode="aspectFit" @click="bbclick()">
		</card>
	</view>
</template>
 
<script>
	import card from "@/components/card.vue"
export default {
	components: {card},
	data() {
		return {};
	},
	methods: {
		aaclick(){
			let green = JSON.parse(this.$storage.get("user")).green;
			let id =  green[green.length-1].interNum;
			console.log(JSON.parse(this.$storage.get("user")).green[0]);
			this.$utils.navigateTo("ModelPage/greenDetail?id="+id,'');
		},
		bbclick(){
			this.$utils.switchTab('riskResponse/riskResponse', '');
		}
	}
};
</script>
 
<style scoped>
	.cantainer{
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
</style>